# -*- coding: utf-8 -*-

"""
Created on 05/10/2022
python_test.
@author: Kang Xiatao (kangxiatao@gmail.com)
"""

import random


# a = random.uniform(0, 1)
# b = random.uniform(0, 1-a)
# c = 1-a-b
# d = random.uniform(0, 1)
#
# print(a,b,c,a+b+c)

# a = random.uniform(-1, 1)
#
# print((abs(a)))

import torch
#
# score = torch.rand(5, 5)
# score = torch.zeros_like(score)
# all_scores = torch.flatten(score)
# threshold, _index = torch.topk(all_scores, 0)
# print(threshold, _index)


# device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
#
# print(device)

# for epoch in range(100):
#     keep_ratio = (1.0 - 0.9999) ** ((epoch + 1) / 100)
#     print(epoch, 1-keep_ratio)
#
# a = 'kang'
# b = 'xia'
# c = 'tao'
#
# if a != '666' and (b != 'dense' or c != 'panning'):
#     print(a,b,c)

#
# import platform
#
# SYSTEM_PLATFORM = platform.system()
# if SYSTEM_PLATFORM == 'Windows':
#     pass

a = '123'

if 'lakn' not in a:
    print(a)
